home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Freeware / Adobe Air 1.5 / AdobeAIRInstaller.exe / setup.swf / scripts / _ListBaseStyle.as < prev    next >
Encoding:
Text File  |  2008-10-29  |  1.2 KB  |  42 lines

  1. package
  2. {
  3.    import mx.core.IFlexModuleFactory;
  4.    import mx.skins.halo.ListDropIndicator;
  5.    import mx.styles.CSSStyleDeclaration;
  6.    import mx.styles.StyleManager;
  7.    
  8.    public class _ListBaseStyle
  9.    {
  10.       public function _ListBaseStyle()
  11.       {
  12.          super();
  13.       }
  14.       
  15.       public static function init(param1:IFlexModuleFactory) : void
  16.       {
  17.          var fbs:IFlexModuleFactory = param1;
  18.          var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("ListBase");
  19.          if(!style)
  20.          {
  21.             style = new CSSStyleDeclaration();
  22.             StyleManager.setStyleDeclaration("ListBase",style,false);
  23.          }
  24.          if(style.defaultFactory == null)
  25.          {
  26.             style.defaultFactory = function():void
  27.             {
  28.                this.paddingTop = 2;
  29.                this.dropIndicatorSkin = ListDropIndicator;
  30.                this.paddingLeft = 2;
  31.                this.paddingRight = 0;
  32.                this.backgroundDisabledColor = 14540253;
  33.                this.paddingBottom = 2;
  34.                this.borderStyle = "solid";
  35.                this.backgroundColor = 16777215;
  36.             };
  37.          }
  38.       }
  39.    }
  40. }
  41.  
  42.